combine search  via keyword and inputfile

combine search  via keyword and inputfile
Fix bugs