submit now use io, added tests
Merge pull request #24 from yanhick/submit-io

submit now use io, added tests