Added catmull rom spline generation with better endpoint rules