Added periodic boundaries and updated the container for this reason