edited parser to use init and plot_add_node  plotting functions