migrated to a maven project
resolved some warnings (mainly raw types warnings)
implemented shutdown hook to listenen for the jvm to stop.