Changed program structure

The structure of the programs system has been changed to better encapsulate the programs from the CMS