Changed measure initial resistance algorithm.
Many minor changes.