started working out normalizing and analyzing code for tiredanalysis
started working out normalizing and analyzing code for tiredanalysis and fixed func calls