Add branch-and-link to library.Move semaphore.

And more docs.