Fixed rank section read/write
Merge pull request #5 from larspalo/master

Fixed rank section read/write