fix EOF management. Update README