Feature/field offsets

Implements feature #14