added an error output if in debug mode
CTRL-C stops server, added port to http url