Added memory allocator and object management stuff