#define THD_DEFAULT_PORT 3000 added, comments and documentation updated accordingly.