add back some algorithm documentation for gamma