Improve summarizeEvents, support wordsList with different priority