Updated readme and fixed spline function