summaryM: added table.env argument, changed how model.frame built