improve printTimingStatistics and add test
improve formatLogMessages and add a first test to TE_LOGLEVEL
some style fixes