-add some comments and set send time limit

-add some comments and set send time limit
now, the email notification will send 6 times, if want to send more,
need to reset the alert