Work on Sniff after Stop

fixes for sniffing/opening after stop button
we will use QWT for graphs