got allocator working
moved everything to it's own package and did some other things