SMS dit: Algebraic structure theory of sequential machines