Changed  to  and fixed minor bug in transitionState.
Merge pull request #6 from FamousPrivateBeta/Aaron/bugFix

Changed $done to $callback and fixed minor bug in transitionState.