Near final change to the new program

Added code to detect if the EEPROM has ever been initialized and
initialize it if it has not.