Small cleanups:
- Added a DEBUG_PRINTF macro.
- Forward-declare all methods.
- Stop running anytime an error occurs while writing to the brightness file.
Introduce brightness step, support for semi-filled rectangles.