fixed ptest, added ptest_graphical for brendan's graphing stuff