updated animator

sync is now accurate.
stack class added (but its a bit slow)