Fix things found by coverity in the 0.1.0 release
Merge pull request #26 from LinuxJedi/coverity_0.1.0

Fix things found by coverity in the 0.1.0 release