The purpose of this chapter is for the enforcement of the North Carolina State Building Code (hereinafter referred to as the Code) in order to protect the health, safety, and general welfare of the residents of Greene County and all contracted municipalities.