Lowest level IO handling done

The base structure is done.