improve sample code document