Small error in the docstring.
Several edits in the thesis.