Work on new io structure and start
of logfile