130512
+ add alert email function
- cleaned some comment out