added local storage to EEPROM and some smoothing of reads