Added debug logger
Added logging so it's trackable what is going on inside the plugin