added easier way to get an output device, cleaned up some fugly parens