Fixed most UnusedLocalVariable warnings
Fixed most UnusedFormalParameter warnings
Merge pull request #423 from blackshadowshade/417_pmd_errors

417 unused code rules fix