This chapter is for the purpose of regulating and restricting the height, number of stories, architectural design and size of buildings and other structures, the percentage of lot that may be occupied, the size of yards and other open spaces, the density of population and the location and use of buildings, structures and land for residence and other purposes, dividing the Village of Upper Brookville into districts for said purposes and providing fines and penalties for violations of the provisions of this chapter, in order to promote the health, safety, morals and the general welfare.