Said mayor and council shall have full power and authority to require any person, firm, company or corporation, whether a resident or nonresident of said city, engaged in or carrying on, or who may engage in, prosecute, or carry on any trade, business, calling, vocation or profession within the corporate limits of said city, by themselves or their agent or agents, to register their names and business, callings, vocation or profession annually, and to require such person, company or corporation to pay for such registration and for license to prosecute, carry on or engage in such business, calling or profession, such amount as the said mayor and council may by ordinance prescribe. Said mayor and council may provide by ordinance for the punishment of all persons, firms, companies or corporations required by ordinance to pay such occupation tax, or take out license for same, who engage in, or offer, or attempt to engage in, such business profession or occupation before paying such tax or taking out such license, or who fail to comply in full with all the requirements of the city and council made in reference thereto. Said mayor and council are hereby given authority to pass such ordinances as may be necessary or proper to carry the foregoing section [section 2-331] into effect; also to classify business and to arrange the various businesses, trades and professions carried on in said city, that may be taxable, into such classes of subjects for taxation as may be just and proper.