Added isDone() method to Callback, fixing null issue.
Removed some warnings.
Merge pull request #12 from meledin/master

Added isDone() method to Callback, fixing null issue.