Fixing minor issues detected by PMD
Fixing various errors detected by Findbugs
Proper configuration of PMD, disabling useless rulsets