Fixed typos in docs
Swap loop order for x and z in octree construction - x should vary fastest!