Reduced stack size.
Moved stuff around, added new/delete operator, added base Object class with reference counting.