Renamed PValue to ZTest, since a p value is much more general.
Added more table values to p-value calculation. Fixed calculation to return p_value, before it was 1 - p_value.