Readme and sample code updated