Added comment, created clear function to reduce redundancy, make working saving and saved animation after save is clicked, and comments on future improvement about conciseness.