Fix errors to make it compile
Make debugger messages more helpful
Fix iterating over octree - depth, not breadth first