edited interpolation algorithm.

added a couple functions and added constants