This chapter is adopted pursuant to the authority and power granted by Municipal Home Rule Law, Article 2, § 10 et seq., of the Consolidated Laws of New York State, with intent to promote the public health, welfare, safety, convenience, order, prosperity, and morals of the community in the following respects: