the smarts new house came with several batteries , an inverter , and a small solar system on the roof like those sold with many houses in california , but preston had done his homework to perfect their system and purchased several more solar panels and batteries from a friend .