Update slug_mem.c

Wrote memstats and did some comments on what I added/ possible errors that I found