Correct documentation in README.md and add many snippets