Updated mem.c

changed and added some stuff to start us out