fix refactoring example in guide
fix typo in docs