add more snippets, update docs