Add comments for genSpline functions