Add retries parameter to client, accompanying test, and update README.
Release v0.3.1.