completely reconstruct spline class

completely reconstruct spline class, add function to calculate pressure gradient