Updated files, refractor, removal of keybindings and added debug mode config.