add docs to bspline code