clean the I/O, change the default settings, add and test the examples