Add javadoc
Refactor parameter name for descriptiveness
Fix [SonarQube] if/else/for/while/do statements should always use curly
braces