add verbose comments to sample.py