add doctests