Initial commit of cgbot code