Added period measurement, changed meas:freq? to meas?
Added reference clock switching