added default values for all variables
made nodes independent of script