Improved config file dumping.
Fixed file argument in config command.
Fixed remaining warnings.