readme and example updated