Spline Functions: Basic Theory