(1) The mayor and council may adopt a code of ordinances and may amend and repeal the same, or any part thereof. (2) All ordinances, bylaws, zoning codes, rules and regulations now in force in said city, not inconsistent with this act, are hereby declared valid and of force until amended or repealed by the mayor and council of said city.