Matlab: added PLL hardware testing;  Arduino: PULSE_DURATION can now be modified; minor simplifications in serial handling