Fixed some off-by-one errors with MEM
Added EEProm usage to MEM