cleanup of cmmodule, added docu
removed unnecessary methods from module, added const-flags