Added threading, improved logging mechanism, fixed double message send bug(s)'
Added threading, improved logging mechanism, fixed double message send bug(s)'