Feature/field offsets

Implements feature #14.

Not finished yet.