added more portable (perl) hostname fetching to pass to the C code, updated docs
drwxr-xr-x - bin
drwxr-xr-x - doc
drwxr-xr-x - examples
drwxr-xr-x - src