Add doctest examples