New controller for IO classes, code cleanups, many fixes