adds newline at the end of file