changes to read data pp and pbpb to reflect addition of chMax cut and checking the analyze macro