Fixed bugs with program not stopping correctly.
Fixed bugs with stream threads not stopping correctly.
Added StoppableThread and replaced threads.
Fixed bugs with not sending width/height.