Add initial flowchart and adapt the addNode function.