Removed extra threads. Small fixes in sniffer and log reader. Added JUnit test.