docs and doctest