added NaN test and doc for tgamma