phpmd setup
cleaning, refactoring, phpmd+phpcs compliance