Merge pull request #152 from eminence/custom_output_stream

Allow customization of the output stream