(A) The purpose and the intent of this code is to prescribe minimum requirements and controls to safeguard life, property or public welfare from the hazards of fire and explosion arising from the storage, handing or use of substances, materials or devices and from conditions hazardous to life, property or public welfare in the use or occupancy of buildings, structures, sheds, tents, lots or premises.
(B) To prescribe a course of action to be taken to gain compliance with the state and local codes, ordinances and regulations for fire prevention.