fixed streamwriter function
kinect updates