created p1.get_p0_value

and I think I got the const-ness correct, after much messing around