Made animationState and animationStateData constructors
Some comments