fixed quadratic spline path through nodes, also decided to go easy on the C-style casts.