Implement adding new sections/lines/fields and writing the resulting file