Implemented config file support and rpc port configuration.