Added two helper functions to the base plugin file.
First one for the include and init of the classes
Second one for debugging
Changed most of the code to use the new functions