Fix typo in naming of padding fields
Fix offset calculation

There was an embarrassing error when caluclating the shift offset.
The value was wrong by a factor of ten and shifted in the wrong
direction.

This fixes issue #4.