fixed analysis so the it will stop at correct time. added a variable for what to call upon playing back the video in either frame by frame or comparison mode