Tweaked the animations and added code comments