Added a simple timeout option.
Shifted timeout into it's own method.
Merge pull request #1 from birdslikewires/master

Litte timeout feature added. Sorry for the delay, missed the github notice