check the supplied mode and complain if not matched, and added mM. Closes #81