Last polish for notification

Last bit of polish put on notifications. Refactored to code to be more readable and pass-through in the case of errors as notifications should not be critical to normal site behavior. Added comments to code as well.