Changed plugin structure

Plugins are now Plug classes with class attributes for better control