added codes for B_22 and B_22p to PVfunctions class.