Thesaurus script and minor changes to postproc