cleanup for phpmd
some phpmd cleanup and documentation to explain