add p_to_pp function

calculates pp values. This is a bit silly - it's just a multiplication.
However, I include a check on the initial list of p values, just for
good measure.