added rewrite module documentation