Changes to setting saving in EEPROM

1) Slightly changed the way settings are stored in the EEPROM
2) Implemented system settings saving and loading