Stream file handling
Added quantization error detection as a metric