Added docs for queue and lock