Fix some things, add some debugging.
Output formatting.
Add clearing logic.
Formatting, lights.
Move debugging out to a function.