fix links in documentation, and add TorConfig API docs