adding break and while
modified void Append() in GtNode