Merge pull request #546 from teharrison/develop

bug and error handeling fixes
Merge pull request #547 from teharrison/develop

fix offset out of bound error
Merge pull request #549 from teharrison/develop

fix required options