Various changes on the configuration and log4j reloading option