added comments to and improved comments in emailAlert.py