offline measurements

add functionality to invert to carry out measurements before the inversion, add separate executable 'offline_measurement' to carry out measurements independelty of the inverter or hmc