Various bugfixes and barostat checking fix.
Merge pull request #1 from jchodera/pressure

Various bugfixes and barostat checking fix.