fix #6
improved the plugin main file
updated to version 2.2.6