fixed bug paired t-test. Other minor fixes.