Fixed many things, integrated Log4j logger.