added logging module

fixed config module