moved listener to another class for create and update xml
added pmd and checkstyle