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

Fix some PHPMD errors/warnings