Removes unnecessary articles and updates the table of contents