Tangent approach is used for cubic curves interpolation now.
Cosmetic changes in code.