adding plotting to the individual functions, only if global TCanvas is declared in the main() it will draw!
adding compiling drawing method. CM Analyser links to a global Canvas that has to be declared in main so that the TApplication can be linked to it!