Added batch writes with docs and test.