fix some code climate issues
Merge pull request #26 from lipp/fix-codeclimate-issues

fix some code climate issues