updated readme with code samples