Implemented animation end callbacks

Resolves #16