added outputs to saveFrames in order to get number of frames, udpated Server to make video once all new frames have been gathered