Added the Device flag to the command line

We can now specify which device to use in a parallel simulation by using
the --device option (-d) followed by an index. An index of -1
(DEVICE_ANY) will tell the simulation to choose the best device
possible.