Fixed bug that caused last keyframe not to be interpolated correctly
Added explicit min,max parameters to avoid having to normalize data