Cleaned up code, added an error animation frame for sequences with non-existant frames, added documentation for animation.