Added apply_substitutions() routine for central regexp handling Added regexp reversion code for box removal Unified use of current_re[pv]rule Added a few comments and debugging code