Improves the script. Adds quality control. Adds FFT visualisation.