Fix bug while using only stdin
Update README