Making Patrh Integrals works with CPU.

Added radio buttons to switch devices.

Issue #24 and #34