To avoid the '#' characters scattered throughout the framework for header output, we could define some improved endl i/o manipulator which inserts a '#' character in front of the line before flushing the buffer and creating a newline.
Alternatively, we could adopt an i/o formatting library.
The comment character issue is solved, but we would still need the option for formatting the output into CSV