2nd comment
corrected some arithmatic of spline length