add display.c and set up main loop in jpd