base implementation DMModel & DMControl

fixed MANY bugs...)