converted read-me to markdown, formatted code snippets