Be it further enacted by the authority aforesaid, That said commission is empowered to define the fire limits of said city and to regulate the character of building and the erection thereof within such limits; to limit the height to which buildings may be erected in the city; to regulate the construction of buildings as to foundation, walls, roofs, doors, windows and floors, so as to secure safety in the structure and to prevent the spread of fire; to authorize, require and provide for the inspection of such buildings and structures erected, or to be erected, or in process of erection; to require the permit for erection of any building and to authorize the revoking of such permit, and the condemnation of any building already erected in whole or in part and to provide penalties for violation of this section.