implemented row- and cell-level locking
README update and implemented sync for operations on a global variable