added debugMode preference
fixed debugMode preference use
enabled more debug outputs including fft display, re-scaled fft display to show only 1/2 of the array to avoid mirroring