Added IO Testbench, fixed IO functions.