Excluded polar hydrogens
Corrected the calculation of dists[]