Merge pull request #2 from rgs/master

Add trace option
allow setting socket timeout
patch from Herald van der Breggen
allow using UDP