add optional output file name in args[0]

add optional output file name in args[0]