Thanks all! Working now, and I also added more enzymes, selectable by getopts.
Peptides printing alright, however, how could I track which peptide comes from which protein in order to make the printing a little more organised?
I.e:
Protein 1 Peptide 1
Protein 1 Peptide 2 ...
Protein n Pepptide x