Added anim creation code

Code added to save, apply and create animations