add gitignore
modified template and debug_tool