fixed memory leak and added reset for "stopwatch"

1. fixed memory leak described in https://github.com/wimbarelds/TimeCircles/issues/78
2. added reset function that resets timer when it works as stopwatch (counting from the moment it was started)
3. removed a bunch of trailing spaces