Minor fixes to animation. Fixes the 1 frame glitch at the end of an animation clip. Still needs some cleanup.