Non-PBC in Z-direction implemented in Atom distance calculation
Some PBC changes, mainly in Atom distance calculation