Merge pull request #1 from techdivision/0.5.8-beta

merging upstream
refactoring of pbc integration
Merge pull request #83 from wick-ed/0.5.8-beta

reviewed with 0.5.8-beta7