output error info to logfile
add readme