Fixed a bug that sometimes made write chunks in the region file header.

parse_header() now updates the file size before parsing the header
making possible to call it after modifiying the region file.

Now the header is updated everytime the region file is modified.
Merge pull request #67 from Fenixin/fix

Fixed a bug that sometimes made write chunks in the region file header.