Redid the alarm system. Not sure if it is working yet...

Also generalised the notification method in background manager.