"added option to generate stimulus frequency at an approximate frequency from the original that will minimize FFT leakage due to sample size"