use doctest, improve README readability
Merge pull request #3 from livibetter/doctest-readme

use doctest, improve README readability