Changed interface from set_headstage. Non working commit.
Added scripts to compute resistance from simple test pulse.