Cleaned up the code to change the animation's duration. Updated the documentation