Added logging. Fixed pom