Do not ignore *.orig files so that they can be deleted with git clean -f.
Replaced std::endl with \n in ofstreams.