Enhanced code readability and performance using PeekableStream.
Updated README.