The exchangeChart command is supposed to extract the information into a svg file. The command now successfully does that but at the same time it also logs every peice of information into the console, which slows the performance down and is also rather messy. There only needs to be a message of success.
Updated the code so that there is no more unesscessary output
problem solved