doc generator: improve regexp, comment docGen class and add class Analysis which will build the documentation instead of docGen