added log4net config
added logging code