Incapsulated mapped_file contents. C-style changes.
Rewrote for C compiler.