A few small fixes, mostly for the callback inheritance problem. Also added -n as a command-line arg to prevent enter-keypress catching on exit.