localization now uses threading events to wait efficiently.
Fixed audiobuffer module so it asks for a length in the constructor. Now can use any length of window and audio works
Realtime playback now plots the windowed output waveform and real half of the output dft. It is setup to only change the plot data on each loop for efficiency, so audio remains uneffected by plotting