server and port can now be read from the cfg-file

server and port can now be read from the cfg-file
todo: abort trap after quitting