Improved readme file and code snippets