adding toIO method
Merge pull request #22 from stackmob/toio

adding toIO method