Added example in README for locking.
Added dereference operator (*) to data access in README.