ADD: show legend in html, resp matrix time calculation, resp matrix sorted values