refactor readme

change name to .md

fix formatting for code examples.