Fixing stream function and testing with all features
Improve Error message