Fix various documentation typos and issues

There are a few typos and other such errors in the documentation.