add doc/doctests