took out old unused code
modularized the intersection code
added the code for following the mesh