Add radio buttons to switch devices (GPU and CPU) on Barkley demo

Issue #27