move read_pps into PPS class and remove pps_func.h