Update core.rb
Update core.rb
fixes for using Enhanced notifications
fix index to be an index of the notification number and handle processing errors and resending
return errors from process errors
fix for errors
Replace 1.year with Datetime.now >> 12