Rewrote code in order to start clean. Working now for every diagramm
Improved console.log handling
Working now, with process wrapper