add a configurable timeout
Merge pull request #5 from jwm/master

Please add configurable timeout support