Minor bugfixes

- fixed csv writing error
- fixed delayed output to statusbox
- fixed coloring of stderr output