correct some warnings
add logger
logger doc + some changes