Add the function of export searching result

Export the searching result to a user-selected file
Merge branches 'gui-export' and 'master'