added a nlerp interpolation function #29