adding newlines to end of files