Plugin class

Transformation of framework core file into plugin core class
Minor fixes