Improve documentation and snippets