added easing function and removed unused typedefs