Fixed crash if node vars_map not set
in addition:
  - move vars helper to separate file
	- add csv support for node variables