Add timeout option

Closes #13
Merge pull request #14 from floatdrop/timeout

Add timeout option