Add information about variables to documentation.
Other miscellaneous improvements to the documentation.