update README and sample code