Pursuant to the authority contained in the Pennsylvania Municipalities Planning Code, Act 247, as reenacted and amended, and for the purpose of promoting health, safety, morals or the general welfare, the Board of Supervisors of West Deer Township are hereby empowered to regulate and restrict the height, number of stories, and size of buildings and other structures; their construction, alteration, extension, repair, maintenance and all facilities and services in or about such buildings and structures and percentage of lot that may be occupied, the size of yards, courts and other open spaces; the density of population; and the location and use of buildings, structures, and land for trade, industry, residence or other purposes; and may also establish and maintain building lines and setback building lines upon any or all public roads or highways.