Cleanup intermediated interval report creation

* Avoiding buffer overruns via strcat
* No code duplication anymore (factor out logic for calculating column width)
* Variadic function for printing measurement output
* No for loops for printing whitespaces - use format specifiers instead
* A lot of doxygen comments