added comments to key_value.py