add newline character to files ends