Fix some null reference exceptions encountered during testing
prepare release
Merge pull request #192 from sawilde/master

build as release package