Implemented plugin, added all files and removed redundant

better use in __init__ for class varibles