added cpc.h, CPC_SetMode function