cleanup unused symbols in iostream

and add docstring / copyright