CMS Factory and Config Class and main interface