added atomic-mtxn; much incidental cleaning up.