TMiel class was removed, now a tree can be written, changings on how the data is passed