edited writer to add zeros to merged speed files for incorrectly detected video frames