Added locking, improved README