General formatting and improving stderr + progressbar with unit tests.