fix some mistakes of mine on multi threads handling. next step: learn tracker_thread to update residual freqeuncy offset information on GUI