I/O operations

Start implementation of IO ops