Fix some PHPMD errors/warnings
Merge pull request #12 from wagnert/master

Fix some PHPMD errors/warnings