Added type check of callback parameter.
Merge pull request #10 from cleancoderocker/master

Added type check of callback parameter.