Edit main to write type of motion vector on file