changed addLineToFile() to add a newline if the file does not end with one. fixes #372
Merge pull request #374 from joolswills/newline

changed addLineToFile() to add a newline if the file does not end with o...