initial import
implemented methods checkSync, quantize
readline