Add missing callbacks.
Remove unused map/2 import.
Merge pull request #3 from AeroNotix/master

Add missing callbacks.
LGTM