Removed use of system.err and updated log4j.properties