Replaces all of std::endl with "\n".

This is done for potential and obvious file streams.

This closes #87.

Please be aware that std::err is not buffered and after std::endl there is no need for std::flush.