added code for notifications

added in the code needed to pass the thread ID to the notifier function