doctest/io

Fixes doctests in  package.  @taldcroft