fix to readme and better example code