As requested by Skippy I have created a document on how to use the IO library.
To read a String from a given InputStream (say now xIn) use the following code:
String response = IO.readCommand(xIn);To write a String (say now xString) to a given OutputStream (say now xOut) use the following code:
IO.sendCommand(xOut, xString)