Add StreamClient, bugfixes