Cleaned up interpolation polynomials and fix clamping.