many small bug fixes, added support for completion blocks when finishing animations