merging suggestion to include a callback function for index.add
publish new version to npmjs.org