added possibility to set timeout
Merge pull request #26 from pulse00/timeout-patch

added possibility to set timeout