add comments for file stream