add license & improve code blocks

I did two things:

1. Explicitly add the MIT License to the repo.
2. Updated the code blocks.

OCD-ish, but I might save you a bit of work. Thanks!