changed registerpeptides() to find peptide position in protein sequence instead of entire protein sequence