added ability to add batches of documents