add doctests to iter
more thorough doctests