Rewiritng example to be clearer, fixing type in readme