Added small things to slug_mem.c