adding generic eeprom and printing functions