made the implementation of periodic boundary conditions more general (more flexible).
They work fine in the serial case. I will add MPI support tomorrow.