Rethinking writing files with memory mapping and C++

A description of the changes made