Add some snippets and update documentation