Updated the EEPROM and Serial code to be compatible with Arduino Mega