Added comments in stream.py