Implement saving of configuration files in its own class