update readme and example code syntax