define function parse_arg

parse_arg is a function to parse the arguments given to export
clean export()
make file_select inherit the result of parse_arg

file_select will ask for the input file only if unspecified
export to specified file
Merge branch 'export2fil'