added deletion of the files before rewriting them, anchor text trimmed, and anchors added count included in logs