editing PPI code, replaced all old analyze_ppi with analyze_gap class-based code
changes