Tidying up defects code.
Tidying up defects code.

Make sure we pick the atom closest to reference site.
chrisdjscott/Atoman,chrisdjscott/Atoman,chrisdjscott/Atoman,chrisdjscott/Atoman,chrisdjscott/Atoman