look to segid columns for chain name if file does not have chains
use distance as an alternative to check if residues are bonded
found cases in PDB where our sorting does not work, instead rely on order in pdb file (which is also unreliable)