Spell check.
Added 'rewrite' module with tests, examples and documentation.