Documentation build err warn

Fix some of the build errors and warning in the documentation.
Related to issue #798.