Improved animation and fixed some bugs.