fix bug with undefined variable
add log message
update readme