improved/fixed the creation and printing of comment trees