Check for null callback.
Added example for passing extra data. fixes #5