Adds the ability to output to a Stream

This adds the ability to output to a stream rather than just the standard output.  It adds the option `output_stream`