bug fix for periodic boundaries
further bug fix attempt
bug fixes
bug fixes for periodic boundary conditions; improved IO for particle files