Merge pull request #7 from tauli/master

all new IQuery.State
Merge pull request #8 from tauli/master

added example for global state
added Namespace variants of newElement and setAttirbute