getopt for port and docroot added