added references to parent nodes. 

added references to parent nodes. one can use getParent() and setParent(ptr) now