Improved the EEPROM code robustness when the settings structure changes.
Removed some old debug code.