remove logger.Close()
add comments for levels