Added handling for perEnd

There was no automatic handling for PERs in the SOTD processing.  Added that so there is always information about how to handle PER review.
It doesn't look like it supports || to me.  And isPERorPR is disgusting.