adding new lines to end of files