fixed error in integration_tests.sh
moved most of the book keeping for animations into a a helper class (formatter.Animation)