Added support for retry options
Added some tests
Merge pull request #81 from zamnetwork/master

Added support for retry options