fixed the distance from point to line/ray/segment routines, and put new bounds struct into plotting of these
noted changes