Added validate function to ensure proper messageObj before creating notification.
Added validate function to ensure proper messageObj before creating notification.
Added comments to core functions
Added console log on invalid messageObj.
Added debugMode to settings. Encapsulated console.logs in debugMode.
Wrapped all console logs with debugMode.