Added LaTeX and HTML documentation.