replaced double* distance with new IntersectData class
fixed some memory leaks and fixed a problem with spheres and planes not
correctly reporting their positions
Removed a lot of debug code and comments for last commit. Removed a redundant and legacy member from Plane and Sphere.
Merge branch 'dev'