CHECKSTYLE-1: Fixed local variable names, some javadocs and formatting issues.

Change also relaxes the 'LocalFinalVariableName' rule name for tests.