Updated POM dependencies and added log4J dependency.
Do logging correctly.