improved the plugin main file
updated the logger
improved the gateway class