Document flexible IO interface
Improve CLI parser