modified documentation, fixed ComputeCGInv()