Change to use "foreach" where possible.
Fixing issue with unused "algorithm" parameter in Utils.
Fixing Javadoc
Removing unused method
Removed unused initialization to "null"
Changing to use "equals()" instead of "==" for Strings
Removing "static final" where not needed.
Fixing minor JS punctuation typos.