GH-70 , GH-71 and Checkstyle fixes

GH-71: Added a counter track retries for job submissions.
Fixed some checkstyle errors.
I'd make these numbers constants