The building department is generally responsible for: