Added periodic boundary conditions. Fixes #18