Added main to plot resutls and changed defaul max_time