added node reference
support reference
added documentaion
Node changed to Tree
Supports reference