KB rewriting and respective Docu

Recognition of already used formulas for rewriting improved
Should avoid "cycles" of non-applicable KB rewriting