Replace local variables with better named ones in writeEEPROM.
de-duplicate EEPROM checksum calculation routines to reduce code size
and improve code maintainability.