add maven PMD plugin, cleanup PMD issues