Initial commit of cpm and cpi frameworks