added lsq contrast computation method
added contrast fitting