Removed unused code and fixed up slab allocation and runtime.
Fixed up rooting so that it compiles... not sure if it works yet.