ected; to regulate and control the manner of building or removing of dwelling houses, chimneys or other buildings, and to establish a code for the same; to regulate and restrict the height, number of stores, and size of buildings and other structures, 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 buil