Fix for chart not showing when packed on jar file and added a "log" parameter that can be passed to the program to redirect stdout and stderr to a file log.txt