Improved the CHARMM residue reading code (nearly works now)