Set up a basic framework for applying animations to objects.
Added some needed comments