DOC: Changed README example to use history(). Fixes #347.