evtranalyze: add summary command and refactor interval code