Fixed getting node attributes.

Function get_node_attributes returns all attributes, not just one.
Added support for node attributes