Update libraries and fix streaming

Hello,

Could you please check my pull request - I've updated the libraries and updated the stream methods.