Sometimes the city building department will help with codes if you get the right person. Of course they will want to inspect it which they should.