Add setOutputStream method.
Fix CS and API documentation.