implemented offset calibration, some tweaks necessary but almost there!
some tweaks in flipping bits, should work now!
last tweaks for the procedure to work correctly
Merge remote-tracking branch 'upstream/Dev' into GUI