updates example with errCb. Fixes #11