Tidy and trim restrcit interface and polynomial interpolation routines.