changed AnimationInterpolation class into enum
Fixed a lot of defects