mostly fixed motionanalysis.  remaining issue is that numFrames does not correctly report the actual number of frames, as evidenced by the last ~14 frames being all black (or perhaps a capture issue?). debugging code in motionanalysis, will delete when remaining issues resolved.