Added input and output offset

Is is also possible to modify part of a file
Added input/output offset test
Input and output offset examples