. . "(a) Enact such ordinance as may be necessary to carry into effect and discharge the responsibilities conferred upon it by law, and such as shall be necessary and proper to promote health and safety, enhance the prosperity and general welfare, improve the morals, and maintain peace and order in the barangay and preserve the comfort and convenience of the inhabitants therein;" . . .