Improved the rim and core calculation. The pdb res serial is now a String in PisaResidue (because of insertion codes)