adds newlines to the end of each file