added config options for port and socket
added example config file