Added animation function for getting previous animation. Also reading st...

...art animation from JSON