Quantization and dithering. Minor fixes.