Mavenized project and other improvements

Since I use Maven in all my projects I needed to mavenize this project, maybe you could merge the changes so that other people can benefit from that...