add comments toc elem
remove addtional spaces and newlines