working on examples.
improved the rewriting of URLs.