lcr2_0 checked and comments added, it also works on pitaya, the main part is ready for implementation of calibration in open circuited connections