Add mdm

Still some kinks to work out with Update (some problems in the base library)