Small doc fixes and some new docstrings.