Fix Javadoc links.
Make comparator serializable so that eventually used collections like TrreMap is also serializable.