improved cpp doc, extended graph visitor