Logic creates array of all words from all pages