Create co.write

Contains all functions and helpers used to write on to the connection