Updated add() method, it now also accepts an array or a batch array. Mapped addBatch() method to add() method
Updated unit tests