modify to make it can be compiled by g++
add gdb mannal and some useful cmd