improved dmmodule.h
cleanup of dmsimulation.cpp & h