added some phpdoc and getNode() method

- phpdoc helps with IDE auto completion
- getNode() gets the current parse tree node to get more
  information(e.g. attributes)