added Mailer class,
fixed localNotification system