ok, now the dynamic memory allocator actually works properly (and other things too). once I implement shrinking and expanding of the reserved memory area, I can mark it as done.
cleaned up some silly whitespace