GH-70 , GH-71 and Checkstyle fixes

GH-71: Added a counter track retries for job submissions.
Fixed some checkstyle errors.
You say / 1000 here but below you use the variable directly. One of these is not what you meant.