added javadoc for Sorter and WordCount