add auxiliary function for spline
add spline pulse shape initialization
MagVec calculation based on Levante-Ernst thermalization correction.