Better checks and initialization of Offset

Offset was being passed to C++ a null and created errors. It was
retrieving erroneous data. This code replaces a NULL offset with a zero
filled vector.
Merge pull request #15 from Neil-Schneider/Offset_Initialization

Example Code Fails Due to Offset Field