added config file. Moved base and port to config.