added memory manager, connecting more pieces together, still not up and running yet