Add configuration by arguments, master server support and logging