Port Path Integrals

Original and modified commits.