Fixed bug in where overtime is not included if the phone is wake up after the counter was finished (running time was negative). Also added some comments on this.