Inspector: Home with roof that collapsed was up to code