added packaging as self-executable JAR to pom.xml
code cleanup