replace pibHist with match
replace ppbHist access with matches
Remove PHist. Overload functions for convenience