added figure; fixed test with pxy parameter; fixed confusion matrix output;