Reset freqmax when switching datasets
Merge pull request #7 from andrew-reece/freq_max_fixes

Reset freqmax when switching datasets