added code to filter out any parameter name with these strings: format,str,def
added code to get filename from command line argument; fixed some comments
added code to print the single line concatenated string to the file by overwriting the original content