Added offset as return value of encode
Merge pull request #30 from shannonturner/development

Added offset as return value of encode