added function to determine the hostname
improved file handling, show hostname in displayname
cleanup
handle filetype option