huge commit, now transforming MaBot into an smart automaton!