Separation of the plugin parser code to the separate class

and improved plugin parsing