Finished EEPROM code

Compiles fine, otherwise untested