made CMM version of sim

changed map representation from a function to a class. Added survey
function (has some bugs)