cleanup sample code in IOProgram and Main