updated callbacks to match node conventions.
Merge pull request #8 from atrniv/master

Updated callbacks to match node conventions.