Added thread for asynchronicity
Completed locking mechanism
changed order of lock

Locks are now granted in a queue-like order as opposed to a stack
order.
Remove check for race condition
Adding notes about locking to the docs
Merge pull request #1 from jrbalsano/add_locking_mechanism

Implemented a locking mechanism for files