Compilable draft of simple IO ports
New I/O works