updated TODO
updated TODO
changed min distance to preferred distance, thereby eliminating a bug. also eliminated spline related bug.