scans txt file and creates ArrayList of words