callback(err, data) style

fixes GH issue #1: Pass errors to callbacks