expanded sample code in readme