added multihist, ttest

fixed getwidth and getpos, added multihist and ttest