fixes to store charge in eeprom, better communication bash to sketch