added setup function to create log files if they donot exist. removed min max from the line chart, so it can auto adjust when legend is used to turn on and off the data