Updated README.
Added doc test.