added preferences for notifications. fixes #2