Make some improvements on PathIntegrals.
Issue #9