Begining of HTMLGenerator : cmdParser,htmlgen modified