Pick the first sample rate instead of last.
Added command line arguments! samp rate, buff size, version.