Add ScoredDocumentComparator; Format code