Fixed log4j and moved main method