Update README. Add types to codeblocks

This is not a totally needed change, but it just makes the README a little more readable.