add optional callback
Merge pull request #33 from shaefner-usgs/master

add optional callback