Add a debug option.
Added ejs.
Port should be a number.
Quote filename in errors.