changes to ttest and doc ajustments