This chapter is hereby adopted in accordance with the requirements of the Municipalities Planning Code, Act 247, as amended, and the objectives of the municipality's Comprehensive Plan designed to regulate the location, height, bulk and size of buildings and other structures; the relation of such buildings or structures to thoroughfares and their intersections and interchanges to transportation arteries, to natural bodies of water and steep slopes, to public buildings and public grounds, to airports and heliports, to historic buildings and places and to floodplains; the percentage of lots that may be occupied; the size and use of yards, courts and other open spaces; the density and distribution of population; the uses of buildings and structures and the uses of land for trade, industry, residences, and other purposes; to conserve the value of existing buildings and uses and to encourage continued use and development of land within the municipality; to establish districts and regulations pertaining to the use of land generally as well as specifically within certain districts; to establish a Zoning Hearing Board with power to determine and vary the application of the regulations hereby established in harmony with their general purpose and intent; providing for the enforcement of provisions herein and imposing penalties for their violations; all for the purpose of promoting the health, morals, safety and general welfare of the inhabitants of the municipality.