added some doctest