Updated to work with a callback as well as a promise.
Updated examples to include callbacks.
Updated version.