The purpose of this article is to protect and safeguard the public health and welfare, and to prevent fires, and to eliminate unnecessary noises, explosions and nuisances.