Fixing doctests.
Documentation improvements.