Added Query class and modified Node class

- Add Query class
- Modify Node class
+ Add nodeId
+ Add Query field
+ Add set/get Query
+ Add clearQuery()