Such regulations shall be made in accordance with a comprehensive plan and designed to lessen congestion in the streets; to secure safety from fire, panic and other dangers; to promote health and the general welfare; to provide adequate light and air, including access to sunlight for solar collectors and to wind for wind energy systems; to encourage the protection of groundwater resources; to prev