Correct the error in free_energy calculation
Merge pull request #1 from jungle-cat/patch-1

Correct the error in free_energy calculation