Add doctests.