Fixed a bug in Animation class that was doing the animation run one time more than the number of loops required.
Fixed the malfunction of animtion loops. Now the animation should stop on the last frame when at the last loop.
Animation example changed to show more types of animations.