fixing dir problem with updated main
fixing pmd warning
 adding slf4j dependency