Added pmd-cpd plugin
Extracted init method
Fixed argumenttypes
Fixed method cause of pmd rule violation
Simplified test methods