Input/Output Directives

Implement I/O directives as per #4.

Please disregard the branch as this is badly named.