THD_DEFAULT_PORT removed.
Header inclusion protection added. Comments added too.