minor quantize fixes, added standalone demo