Produce a more sane and prettified output to stdout
Fix bug in the output-to-log code that caused it to infinite loop because we never moved on to the next element of the linked list
Fix a compilation warning about a set but unused variable