code cleaned. log message added
log message edited. close #20