Added maxRetries option to documentation