Fixed the reading of a trailing newline in a file

Fixes #67 
The reason is that the input list, written to a file and read back will not be the same because we will be breaking on newlines when reading back.