added input torsion parameters, added spline.cpp and spline.hpp