Avoid magic numbers

...or at least part of them
Code style:  "if"/"while" formatting
Use mmap() for reading compressed file
Changelog updated