Implement basic config file serialization