finish all methods about search
add test for commandline interface
mostly completed