Refactoring of node types, implemented attributes getter.