added dataset-to-cols-and-rows
moved a function back to mmi project