[refactor] Use flatiron and improve the way to create the files