proper callback handling and README.md usage update