Updt. gitignore.
Calling setNeighbour() in setMapping().
This commit is unusual. All the 3D version was transcripted from the newer Rabello's version. Several methods were replaced, some of the primary implementation weren't reused and the PBC's newest were kept. It's necessary to replace the reals with doubles in the rest of the script mains as they need to be used.