Added PMD Ruleset and fixed some more violations.