optimize visualizer
change run.sh
add gflags library in build
change the path of CMakeLists.txt