delete terms that are marked "(blank)" in the replacement column;
minor fixes in other scripts