fix bug in einlese.c and try to improve logging