Code for writing to eeprom *untested*

Need to implement the sleep routine