modified code generator and house_thermo example