update build; add pmd/checkstyle
fix pmd/checkstyle warnings