updated README and added snippets