Mavenized the project
improved some permission handling