Finish ofstream -> ostream.
Merge remote-tracking branch 'upstream/master'