Adding StreamReference model class
Adding __toString() to StreamReference
Refactoring: always using StreamReference