bug related to user input of output file name fixed.