cleans debugger class
cleaned the main file
code refactoring