add gitmodules
add debug header file and fix some bug