Rolling back some mistaken previous modifications

This version of lupa includes a call to flush in the main loop to flush log
messages to the console.