Changed example to use the io interface

Nothing much, I just changed the example notebook to be aligned with the latest changes. It took me some time to figure out what was wrong, so you might want to update your examples.