Add snippets and expand documentation