More functionality in Mem_Alloc, still some bugs