added octree's first version plus many fixes.