clean docGen improve array structure in class analysis and prepare method to create the docfile