Fixed typos in comments.
flake8
Implemented batched local and remote inserts.