added comments to diff.py