Correct variable name. Add javadoc