Added commandline flag for trailingNewline