updated code and added jar lib with config for log4j2 framework.