made spline.cc use linear interpolation to avoid boundary condition problems

+ tidied up crustcool.cc