l2:Add doc for l2 rewrite, and add examples