Error reported in last commit was just a problem with visualization, still tests give a significant discrepancy between the algorithms for a couple of atoms in 1ubq.