changes made after code review for cmd handler and txt_handler + litle modifications to norvig and backtraking algorithms