Updated documentation, added block for animation finish, refactored