Energy storage plus charging inverter