Added debug output for 3-bond neigbours and torsion angles which works