added quantization and write to vdif