updated pbtools
updated pbtools for p-rep analysis