changed eeprom_update to eeprom_write for arduino compatibility