added Node.h and some changes