xtc file management and routine for calculating the distances respect to a geometric center with pbc