* optimized transfer to eeprom
* removed some debug code