Make some improvements on PathIntegrals.
Issue #9

Reviewed by: Diego Pinheiro
             Alexandre Rocha