Fixed rename diagram bug
Moved renamedDiag to cpp
Fixed tree rename issue.
Merge pull request #2 from veaceslav/master

Pull new patches