em400: args_to_cfg(), i/o fixes, output beautify