added log4j.properties and added a loger in control class