Changed comparTo function. If ob1 < ob2 then result is negative integer.
If those two are equal function returns 0 and if ob1 > ob2 function
returns positive integer.
General cleaning.