Rename fs and rate to samplingfreq and samplingrate