Add TB_OUTPUT_MODE_256 + documentation

Additionally, make cosmetic change by transforming if() into
switch() statements.
Adjust src/demo/output, make output for each mode