close #204
refactored code so that instance is only set when the object is configured, following issue #206
Merge pull request #205 from cbismuth/master

close #204 - QueryResultParser offset should be defined as long
Merge pull request #207 from YannRobert/RefactorToBeClearerSinceIssue206

refactored code so that instance is only set when the object is configured