Added anchors to doc titles and fixed links in table of contents.