* fix harmless warnings and properly try/catch allocations via new
otherwise the error handling will never be triggered
* increase precision of mode_countdown_ handling
potentially there could be modes running a bit too long, depending on passed in ms (which were implicitly truncated before when passing in)
also fix some harmless warnings
* document warnings that i cannot handle on my own
* revert changes to have a new cleaner PR after review/cherry picks
* increase precision of mode_countdown_ handling
potentially there could be modes running a bit too long, depending on passed in ms (which were implicitly truncated before when passing in)
also fix some harmless warnings and add comments where original code is 'correct' but weird