run README through doctest

Travis now checks our README code examples for correctness!

(Examples have to be in doctest style, lines starting with `>>>` etc.)