refactor & LICENSE update
added shutdown hook for tomcat