Added command line option to keep trailing newlines

This adds the command line options '--keep-trailing-newline' (or '-n').

I'm not sure whether 'n' is the right letter to shorten it to and might require some thought.

I added a newline to one of the test samples. I'm not sure whether that would be okay, or whether it would be better to add a new file to check this with.