SMS dit: Algebraic theory of molecules