Roofer says misunderstanding of building code led to red flag by inspector