added log4j logging, removed system.out