Add documents and test cases for new configuration "max_retry_times" and "retry_interval".
Update .gitignore
Remove debug code
Fix a logic error in a test case