adds ending newline to files