Add method to dump configuration to a file
Keep comments from default configuration when dumping