add batch write functionality, put and delete, add tests