added notification functions to catch API errors
Merge remote-tracking branch 'origin/master'