Added solved check for PBC calculations.
Fixed problem in ELLIPSOID calcultion of N