Added more code snippets to README