evaluation of events detection

Work on events detection evaluation
Correction of mistakes for first and last timestamps