added some matlab tests
added some pics of it following the surface
testing changes
fixed bug that caused line segments not to follow surfaces in some cases