Fix some typos
Add option to enable debug
Add scaled_output mode.

This mode allows to switch between the regular output range and an alternative one.