Making Path Integrals works with CPU.

Added radio buttons to switch devices.
Issue #25 and #34

Updated demos.txt

Reviewed by: Afonso Costa
             Andre Loureiro