change bytes logger in read parser from putc to fprintf
change fseek to rewhild and check EOF with feof. NMW:ubused behavior checking 1..