device chooser in waveforms.cpp

--BRJ and CAR