refactor a bit, add get_grand_total() function. Test suite: tweak sleep time.
make an svg systray icon that updates from tim's state.