Fixed a bug for which if you did a CTRL+D(end of file), it would cause the cin stream to close, and cause an infinite loop on itself. Prefix printing moved to its own function. Added a signal handler to watch for a interupt signal, and tell the user to use 'exit' to close our shell.