added the pointDeviation method that prints the deviation between the
average value of the section and a given point's value. also added the
check index method