Initial commit of cgsense code