added avi capture and stereo capture + fixed some bugs