fixed index error in filterFreq(), also fixed sampling rate in frequencyExtract(), now returns accurate frequencies