add newlines at and of files