removed warnings, switched funtions to slug_mem.c. only have one header file