cleanup debugger code
add new header files
use const qualifier when it has sense