Note: This section is under work, the material there now comes from the old cmsim version and is obsolete in many places