tweak octree construction code more, add comments and debug output