Initial code + readme
Fix muddled if statement
Escape code in README.md
Merge