MainWindow: Include device/file name in window title

This fixes bug #244
SamplingBar: Reduced indentation in update_sample_count_selector
Check LIMIT_SAMPLES and SAMPLERATE are available to read before attempting to read them