rewrite based on the batch-write-stream module
documented
minor version bump