Changed millis to ticks (10 ms resolution instead of 1, helps with time overflows), reordered some things, reworked test mode

Signed-off-by: Marius <git@mgraefe.de>