live_stream: tested code and removed bugs.