Interface clean up and fix window blocking prompt.

Fixed the window blocking the prompt. There was no need for pause () in the
window because the prompt keeps the program running in an input loop.
General interface clean up. Moved most utility code to util.c.