Fixed display callback to stop thrashing.

Fixes #6.

You have to clear the buffer before you redisplay...
Added keyboard callback back into main.

Pressing the Q key now quits the program.