Fix newlines at EOFs (trivial)

Went though the files to familiarise with the code. Adding to AUTHORS not needed.