removed trailing spaces so ST will stop yelling at me;
altered 'notify' function to get it to accept arguments