Added some javadoc.
Small fix to comparison.
Javadoced comparison class.