Adding timewise report, code cleanup