Added missing snippets for v4. Reorganized the doc.