update readme and add example