Adoption, Modification, Repeal. The mayor and council shall have the power and authority to adopt, maintain and declare of force a code of the ordinances, resolutions and rules of said city, which code ยท may consist of and contain such ordinances, resolutions and rules now of force and effect as the council may deem proper to include therein, or a revision thereof or of entirely new ordinances, resolutions and rules, and may contain such of either as said mayor and council deem appropriate to include therein. Said code shall be subject to amendment or repeal, in whole or in part, at any time; provided, however, that the ordinance adopting a code shall be passed in accordance with Section 4.1.