simplifed the io __iter__ method
simplified the catch() method's signature
Added test coverage