sample code docs updated