added ray/sphere intersection, first pass at polyline selection working