added a legend to graphs
Added code for computing average time it takes for a job to finish