Added pmd check to build.gradle
Simplified checkstyle setup.