working version. with bug, a fix on NULL_OFFSET
Merge pull request #4 from owensss/master

working version. with bug, a fix on NULL_OFFSET