Added pmd task

Ready for review