Added debug logger, fixed bug in QuickAlert, misc fixes