Improve configuration, fix pom, remove GUI code from library project.