adding kernel functions for fitting smooth spline and updating docs