adds new lines at the end of files