Updated ostream Operator

Fixed the ostream operator so that it is correctly implemented.