globalVariable fix, and code/doc mismatch in pchisqGC