refactoring of automaton class and some test adjustments. Working on suggestion logic